<div class="infoBlock">
<div class="infoBlockHeading"><span class="t">Fields</span></div>
<div class="infoBlockContent">

{literal}
<script type="text/javascript" language="javascript">

</script>
{/literal}

<div class="infoBlockItem">
<form name="itemform" method="post">
<input type="hidden" name="action" value="updateitem-applications">
<input type="hidden" name="id" value="{$CONTENT.item.id}">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="100" align="right" valign="top"><label class="fb">Name</label>: </td>
    <td><a href="?op=detail&id={$CONTENT.item.id}" class="underline">{$CONTENT.item.name}</a></td>
    <td></td>
  </tr>
{section name=field_item loop=$CONTENT.fields_items}
{assign var=id value=$CONTENT.fields_items[field_item].item.id}
{assign var=editor_id value="editor_content$id"}
{if $CONTENT.fields_items[field_item].item.type == 'textarea'}
  <tr>
    <td align="right" valign="top"><label class="fb">{$CONTENT.fields_items[field_item].item.name}</label>: </td>
    <td>{pp_inputtextarea name="field_content" id=$editor_id value=$CONTENT.item.content cols="60" rows="20"}
    <p><br /><a href="javascript:void(0);" onclick="editor_load()" id="_editor_load" class="btn"><span>Load Editor</span></a>
    <a href="javascript:void(0);" onclick="editor_toggle()" id="_editor_toggle" class="btn hidden"><span>Toggle Editor</span></a></p>
    </td>
    <td></td>
  </tr>
  <tr>
    <td align="right" valign="top"><label class="fb">Upload</label>: </td>
    <td><script type="text/javascript" language="javascript">puploadinit('pupfile','','_pupfile{$id}','all');</script></td>
    <td></td>
  </tr>
{else}
  <tr>
    <td align="right" valign="top"><label class="fb">{$CONTENT.fields_items[field_item].item.name}</label>: </td>
    <td>{pp_inputtextarea name="field_style" value=$CONTENT.item.style cols="60" rows="8"}</td>
    <td></td>
  </tr>
{/if}
{/section}
  <tr>
    <td align="right" valign="top"><label class="fb">Style</label>: </td>
    <td>{pp_inputtextarea name="field_style" value=$CONTENT.item.style cols="60" rows="8"}</td>
    <td></td>
  </tr>
  <tr>
    <td align="right" valign="top"></td>
    <td><input type="submit" name="submitbtn" value="Submit"></td>
    <td></td>
  </tr>
</table>
</form>
</div>

</div>
</div>